package com.cjh.wechat.core.controller;

import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.cjh.wechat.commom.util.JSONUtil;
import com.cjh.wechat.commom.vo.ResponseVo;
import com.cjh.wechat.core.service.InitService;

@Controller
@RequestMapping("/init")
public class InitController
{
    @Resource
    private InitService initService;
    
    @ResponseBody
    @RequestMapping(value = "/initInfo", method = RequestMethod.POST)
    public String initInfo(String id) throws InterruptedException
    {
        ResponseVo responseVo = initService.getInitVo(id);
        String s = JSONUtil.objToJson(responseVo);
        return s;
    }
}
